import { gettoken } from "../../utils/auth"

//  token 存入 andx 中
 const initState = gettoken() ||  ''
 
 export function login (state = initState,action){
  if (action.type === 'token/login') {
    return action.token    
  }
  return state
 }
 
 export default login